package com.freeLearning.boot.course.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.freeLearning.boot.course.model.VO.CourseInfoPageVO;
import com.freeLearning.boot.course.model.entity.CourseInfo;
import com.freeLearning.boot.course.model.query.CourseInfoPageQuery;
import com.freeLearning.boot.system.model.bo.UserBO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.jetbrains.annotations.NotNull;

import java.util.List;
import java.util.Map;

@Mapper
public interface CourseInfoMapper extends BaseMapper<CourseInfo> {
    Page<CourseInfoPageVO> getPage(Page<CourseInfo> page, CourseInfoPageQuery queryParams);

    Long myInsert(CourseInfo courseInfo);

    List<CourseInfoPageVO> getCourseList(@Param("params") Map<String, Object> params);

    CourseInfoPageVO queryDetail(Long id);
}
